#include "StdAfx.h"
#include "Helper.h"

CHelper::CHelper(void)
{
}

CHelper::~CHelper(void)
{
}

char* CHelper::ConverToChar(const CString &s, char* pAnsiString)
{
	int bufsize=s.GetLength()+1;
	wcstombs(pAnsiString,(LPCTSTR) s, bufsize);
	return pAnsiString;
}

char* CHelper::ConverToChar( const wchar_t* s, char* pAnsiString)
{
	int bufsize = wcslen(s) + 1;
	wcstombs(pAnsiString,s, bufsize);
	return pAnsiString;
}
